# -*- coding: utf-8 -*-
# function CMDB 展示
# __author__ = 'yeslf'


import bottle

from bottle import run, template, route, static_file


@route('/js/<filename:path>')
def js(filename):
    return static_file(filename, root="js")


@route('/css/<filename:path>')
def css(filename):
    return static_file(filename, root="css")


@route('/css/patterns/<filename:path>')
def csspatterns(filename):
    return static_file(filename, root="css/patterns/")


@route('/fonts/<filename:path>')
def fonts(filename):
    return static_file(filename, root="fonts")


@route('')
@route('/')
def index():
    return template("assetshow")


@route('/add/')
@route('/add')
def index():
    return template("addasset")

@route('/show')
@route('/show/')
def index():
    return template("assetlist")


run(host='0.0.0.0', port=80, debug=True, reloader=True)
